package com.clark.dingding.retrofit.repository

import com.clark.dingding.model.NewsData
import com.clark.dingding.retrofit.ApiClient.gankDataService
import com.linkage.linkedlife.model.GirlsData
import io.reactivex.Observable

object GankDataRepository {

    @JvmStatic
    fun getFuliDataRepository(size: String?, index: String?): Observable<GirlsData?>? {

        //可以操作Observable来筛选网络或者是本地数据
        return gankDataService.getFuliData(size, index)
    }

    @JvmStatic
    fun getNewsDataRepository(size: String?, index: String?): Observable<NewsData?>? {

        //可以操作Observable来筛选网络或者是本地数据
        return gankDataService.getAndroidData(size, index)
    }

}